# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=20, verbose_name='\u7c7b\u522b\u540d')),
                ('description', models.CharField(max_length=255, null=True, verbose_name='\u7c7b\u522b\u63cf\u8ff0', blank=True)),
                ('create_at', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name_plural': '\u7c7b\u522b',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Contact',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=30, verbose_name='\u59d3\u540d')),
                ('phone', models.CharField(max_length=11, null=True, verbose_name='\u624b\u673a\u53f7', blank=True)),
                ('email', models.EmailField(max_length=40, null=True, verbose_name='\u7535\u5b50\u90ae\u4ef6', blank=True)),
                ('country', models.CharField(default='\u4e2d\u56fd', max_length=10, verbose_name='\u56fd\u5bb6')),
                ('province', models.CharField(default='\u5317\u4eac\u5e02', max_length=10, verbose_name='\u7701')),
                ('city', models.CharField(default='\u5317\u4eac\u5e02', max_length=10, verbose_name='\u57ce\u5e02')),
                ('district', models.CharField(max_length=20, verbose_name='\u533a')),
                ('street', models.CharField(max_length=100, verbose_name='\u8857\u9053')),
                ('postcode', models.IntegerField(max_length=6, null=True, verbose_name='\u90ae\u7f16', blank=True)),
                ('create_at', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
            ],
            options={
                'verbose_name_plural': '\u8054\u7cfb\u4eba',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='ContactKeeper',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('create_at', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('contact', models.ForeignKey(to='contact.Contact')),
                ('owner', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name_plural': '\u5b58\u50a8\u8054\u7cfb\u4eba',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='ContactManager',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('create_at', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('category', models.ForeignKey(to='contact.Category')),
                ('contact', models.ForeignKey(to='contact.Contact')),
                ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name_plural': '\u7ba1\u7406\u8054\u7cfb\u4eba',
            },
            bases=(models.Model,),
        ),
    ]
